<script setup>
import { inject } from 'vue'
const money = inject('money')
// 获取app传过来的方法
const changeMoney = inject('changeMoney')
</script>

<template>
  <div class="son-page">
    son {{money}}
    <button @click="changeMoney(10)">花爷爷的钱</button>
    </div>
</template>

<style lang="scss" scoped></style>
